<ng-container>
  <nz-form-control [nzValidateStatus]="validateForm.controls['value']">
    <input nz-input [name]="'value'" [(ngModel)]="entity.value"
           placeholder="'请输入配置值'" style="display: none;" />
    <nz-input-group  *ngFor="let v of entity.valueArr;let i = index;" style="margin: 3px 0;">
      <div>
        <input style="width: 30%;margin-right: 3px;" [(ngModel)]="v.key" nz-input [ngModelOptions]="{standalone: true}" placeholder="键名" (change)="changeKey(v,i)" required>
      </div>
      <div>
        <input style="width: 50%;margin-right: 3px;" readonly [(ngModel)]="v.value" nz-input [ngModelOptions]="{standalone: true}" placeholder="键值" (change)="changeValue(v,i)" required>
      </div>
      <div style="display: none;">
        <button style="width: 32px;" nz-button [nzType]="'danger'" type="button" title="删除该条数据" (click)="remove(i)" *ngIf="entity.valueArr.length > 1">
          <i class="anticon anticon-minus"></i>
        </button>
      </div>
    </nz-input-group>
    <button nz-button  type="button" [nzType]="'default'" title="添加一条数据" (click)="add()" style="display: none;">
      <i class="anticon anticon-plus"></i>
    </button>
    <nz-form-explain *ngIf="formErrors.value">{{formErrors.value}}</nz-form-explain>
  </nz-form-control>
</ng-container>


